package es.agroservicio.Agroservicio.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "LineaFac")
public class BillLine {

	@Id
	@Column(name = "IdLinFac")
	@NotEmpty
	private int id;

	@Column(name = "IdPro")
	@NotEmpty	
	private int idProduct;
	
	@Column(name = "Cantidad")
	@NotEmpty
	private Float quantity;
	
	@Column(name = "PrecioUnidad")
	@NotEmpty
	private Float unitPrice; 
	
	@Column(name = "PrecioLinea")
	@NotEmpty
	private Float linePrice;
	
	@Column(name = "IdFac")
	@NotEmpty
	private String idBill;
	
	@Column(name = "Anio")
	@NotEmpty
	private int year;
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getIdProduct() {
		return idProduct;
	}

	public void setIdProduct(int idProduct) {
		this.idProduct = idProduct;
	}

	public Float getQuantity() {
		return quantity;
	}

	public void setQuantity(Float quantity) {
		this.quantity = quantity;
	}

	public Float getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Float unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Float getLinePrice() {
		return linePrice;
	}

	public void setLinePrice(Float linePrice) {
		this.linePrice = linePrice;
	}

	public String getIdBill() {
		return idBill;
	}

	public void setIdBill(String idBill) {
		this.idBill = idBill;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	
}
